package 力扣日常刷题.木22一月.第17天0129;

/**
 * @author 帅小伙
 * @date 2022/1/29
 * @description
 */
public class Demo25数组简单最富有客户的资产重量 {


    public int maximumWealth(int[][] accounts) {
        int ans = 0;
        for (int i = 0; i < accounts.length; i++) {
            int sum = 0;
            for (int j = 0; j < accounts[0].length; j++) {
                sum+=accounts[i][j];
            }
            ans = Math.max(ans, sum);
        }
        return ans;
    }


}
